import { get, post, del } from '@/utils/http/axios';
const URL =  {
    upload : '/api/files/upload',
    download : '/api/files/download',
    deleteFile : '/api/files/deleteFile',
}


const download = async (params) => get({ url: URL.download, params: params, data: {}, headers: {} });
const upload = async (data) =>
    post({ url: URL.upload, params: {}, data: data, headers: { 'Content-Type': 'multipart/form-data;charset=utf-8' } });
const deleteFile = async (params) =>  del ({ url: URL.deleteFile, params: params, headers: {} });

export {  upload, download, deleteFile };
